package com.spaceraccoons.api.adapter;

import javax.validation.constraints.NotNull;

/**
 * <p>Basically a shameless rip-off from JAXB2's
 * <code>XMLAdapter</code> class.</p>
 * 
 * @author Benjamin P. Jung
 *
 * @param <ValueType>	Protocol buffer Java class
 * @param <BoundType>	Business object bound Java class
 */
public abstract class ProtobufAdapter<ValueType,BoundType> {

	public abstract BoundType unmarshal(@NotNull ValueType v) throws Exception;
	public abstract ValueType marshal(@NotNull BoundType v) throws Exception;

}
